package com.wolf.etl.enumeration;

/**
 * Created by tommy's father on 2017/8/25.
 */
public enum CHECK_RULE_TYPE {
    CHECK_BY_API("CHECK_BY_API"),
    CHECK_IS_NOT_NULL("CHECK_IS_NOT_NULL"),
    CHECK_IS_NUMBERIC("CHECK_IS_NUMBERIC"),
    CHECK_IS_DATETIME("CHECK_IS_DATETIME"),
    CHECK_IS_UNIQUE("CHECK_IS_UNIQUE"),
    CHECK_CONSTRAINTS("CHECK_CONSTRAINTS");

    private String checkRuleType;

    CHECK_RULE_TYPE(String checkRuleType) {
        this.checkRuleType = checkRuleType;
    }

    public boolean isEquals(String checkRuleType) {
        return this.checkRuleType.equalsIgnoreCase(checkRuleType);
    }

    public String getCheckRuleType() {
        return checkRuleType;
    }

    public void setCheckRuleType(String checkRuleType) {
        this.checkRuleType = checkRuleType;
    }
}
